package cn.zhoumingxin.Test;

import java.util.Scanner;

public class TestEggBox {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int box;
		int count = 0;
		box = in.nextInt();
		
		count = count + box/8;
		
		if(box%8 == 0) {
			System.out.println(count);
		}else {
			count = count + 1;
			System.out.println(count);
		}
	}

}
